package com.yinhai.message.api.exception;

public class TMException extends RuntimeException{

	private static final long serialVersionUID = 1L;
	
	private String errorMessage;
	
	public TMException(String errorMessage){
		super(errorMessage);
		this.errorMessage = errorMessage;
	}
	public TMException(Exception excepiton) {
		super(excepiton);
	}

	/**
	 * 获取错误信息
	 */
	@Override
	public String getMessage() {
		return errorMessage;
	}
}
